/* eslint-disable */
/**
 * 该文件是为了按需加载，剔除掉了一些不需要的框架组件。
 * 减少了编译支持库包大小
 *
 * 当需要更多组件依赖时，在该文件加入即可
 */
import Vue from 'vue'

//全局注册 自定义组件
import {
  FormInput, FormRadio, FormCheckBox, FormSelect, FormTextArea, InputGroupSearch,
   EditableCell, FormDatePicker, FormInputNumber, SelectGroup, FormPop, FormRangDatePicker, 
   FormFastArea,FormTreeSelect,FormShow
} from "@/components/Form";

//打印方法
import Print2 from '@/utils/print';
Vue.use(Print2);

import { FormModel } from 'ant-design-vue';
Vue.use(FormModel);

Vue.component('FormPop', FormPop);
Vue.component('FormInput', FormInput);
Vue.component('FormSelect', FormSelect);
Vue.component('FormRadio', FormRadio);
Vue.component('FormCheckBox', FormCheckBox);
Vue.component('EditableCell', EditableCell);
Vue.component('InputGroupSearch', InputGroupSearch);
Vue.component('FormTextArea', FormTextArea);
Vue.component('FormDatePicker', FormDatePicker);
Vue.component('FormInputNumber', FormInputNumber);
Vue.component('SelectGroup', SelectGroup);
Vue.component('FormRangDatePicker', FormRangDatePicker);
Vue.component('FormFastArea', FormFastArea);
Vue.component('FormTreeSelect', FormTreeSelect);
Vue.component('FormShow',FormShow);





import {
  Carousel,
  ConfigProvider,
  Layout,
  Input,
  InputNumber,
  Button,
  // Switch,
  Radio,
  Checkbox,
  Select,
  Card,
  Form,
  Row,
  Col,
  Modal,
  Table,
  Pagination,
  Tabs,
  Icon,
  // Badge,
  Popover,
  Dropdown,
  List,
  Avatar,
  // Breadcrumb,
  Steps,
  Spin,
  Menu,
  Drawer,
  Tooltip,
  Alert,
  // Tag,
  Divider,
  DatePicker,
  // TimePicker,
  Upload,
  // Progress,
  // Skeleton,
  Popconfirm,
  message,
  notification,
  Tree,
  TreeSelect,
  Descriptions
} from 'ant-design-vue'
// import VueCropper from 'vue-cropper'
Modal.props.maskClosable.default = false;
message.config({
  // top: `10%`,
  duration: 2,
  maxCount: 3,
});

console.log("Modal.props",Modal.props);
Vue.use(Carousel);
Vue.use(ConfigProvider)
Vue.use(Layout)
Vue.use(Input)
Vue.use(InputNumber)
Vue.use(Button)
// Vue.use(Switch)
Vue.use(Radio)
Vue.use(Checkbox)
Vue.use(Select)
Vue.use(Card)
Vue.use(Form)
Vue.use(Row)
Vue.use(Col)
Vue.use(Modal)
Vue.use(Table)
Vue.use(Pagination)
Vue.use(Tree)
Vue.use(Tabs)
Vue.use(Icon)
// Vue.use(Badge)
Vue.use(Popover)
Vue.use(Dropdown)
Vue.use(List)
Vue.use(Avatar)
// Vue.use(Breadcrumb)
Vue.use(Steps)
Vue.use(Spin)
Vue.use(Menu)
Vue.use(Drawer)
Vue.use(Tooltip)
Vue.use(Alert)
// Vue.use(Tag)
Vue.use(Divider)
Vue.use(DatePicker)
// Vue.use(TimePicker)
Vue.use(Upload)
// Vue.use(Progress)
// Vue.use(Skeleton)
Vue.use(Popconfirm)
// // Vue.use(VueCropper)
Vue.use(notification)
Vue.use(Descriptions);
Vue.use(TreeSelect);

Vue.prototype.$confirm = Modal.confirm
Vue.prototype.$message = message
Vue.prototype.$notification = notification
Vue.prototype.$info = Modal.info
Vue.prototype.$success = Modal.success
Vue.prototype.$error = Modal.error
Vue.prototype.$warning = Modal.warning